package com.brokendust.client.api.util;

public class KeyBoard {
    public static String toString(int keyID) {
        if (keyID == 32) {
            return "Space";
        }
        if (keyID < 255) {
            return String.valueOf((char) keyID);
        }
        switch (keyID) {
            case 256: {
                return "Esc";
            }
            case 257: {
                return "Enter";
            }
            case 258: {
                return "Tab";
            }
            case 259: {
                return "Backspace";
            }
            case 260: {
                return "Ins";
            }
            case 261: {
                return "Del";
            }
            case 268: {
                return "Home";
            }
            case 266: {
                return "PgUp";
            }
            case 269: {
                return "End";
            }
            case 267: {
                return "PgDn";
            }
            case 262: {
                return "Right";
            }
            case 263: {
                return "Left";
            }
            case 264: {
                return "Down";
            }
            case 265: {
                return "Up";
            }
            case 290: {
                return "F1";
            }
            case 291: {
                return "F2";
            }
            case 292: {
                return "F3";
            }
            case 293: {
                return "F4";
            }
            case 294: {
                return "F5";
            }
            case 295: {
                return "F6";
            }
            case 296: {
                return "F7";
            }
            case 297: {
                return "F8";
            }
            case 298: {
                return "F9";
            }
            case 299: {
                return "F10";
            }
            case 300: {
                return "F11";
            }
            case 301: {
                return "F12";
            }
            case 283: {
                return "PSSR";
            }
            case 281: {
                return "ScrLk";
            }
            case 284: {
                return "PBreak";
            }
            case 282: {
                return "NumLk";
            }
            case 320: {
                return "Num0";
            }
            case 321: {
                return "Num1";
            }
            case 322: {
                return "Num2";
            }
            case 323: {
                return "Num3";
            }
            case 324: {
                return "Num4";
            }
            case 325: {
                return "Num5";
            }
            case 326: {
                return "Num6";
            }
            case 327: {
                return "Num7";
            }
            case 328: {
                return "Num8";
            }
            case 329: {
                return "Num9";
            }
            case 330: {
                return "Num.";
            }
            case 331: {
                return "Num/";
            }
            case 332: {
                return "Num*";
            }
            case 333: {
                return "Num-";
            }
            case 334: {
                return "Num+";
            }
            case 335: {
                return "NumEnter";
            }
            case 340: {
                return "LShift";
            }
            case 341: {
                return "LCtrl";
            }
            case 343: {
                return "Win";
            }
            case 342: {
                return "LAlt";
            }
            case 346: {
                return "RAlt";
            }
            case 347: {
                return "CLock";
            }
            case 348: {
                return "MRight";
            }
            case 344: {
                return "RShift";
            }
            case 345: {
                return "RCtrl";
            }
            default: {
                return "None";
            }
        }
    }
}
